package com.jiuhao.dto;

import lombok.Data;

import java.util.List;

@Data
public class SegmentsDto {
    // 最外层字段
    private long time;
    private Data data;
    private int code;
    private String msg;

    /**
     * 数据主体内部类
     */
    @lombok.Data
    public static class Data {
        private int total;
        private int pn;
        private int ps;
        private List<Segment> list;
        private Object allInstructions;
        private boolean refresh;
        private String currentSegmentId;
    }

    /**
     * 段落信息内部类
     */
    @lombok.Data
    public static class Segment {
        private String segment_id;
        private String segment_content;
        private List<String> segment_title_list;
        private int segment_len;
        private String segment_status;
        private Integer start_timestamp_second;
        private Integer end_timestamp_second;
        private String available;
        private List<SegmentCoord> segment_coord;
        private List<Sentence> sentence_list;
    }

    /**
     * 段落坐标内部类
     */
    @lombok.Data
    public static class SegmentCoord {
        private int[] box;
        private int pageno;
    }

    /**
     * 句子信息内部类
     */
    @lombok.Data
    public static class Sentence {
        private String sentence_id;
        private String sentence_content;
        private String sentence_type;
        private Integer start_timestamp_second;
        private Integer end_timestamp_second;
        private Object similarity_list;
    }
}